package com.vains.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vains.entity.OauthClientDetails;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author vains
 * @since 2020-08-11
 */
public interface IOauthClientDetailsService extends IService<OauthClientDetails> {

    /**
     * 根据 客户端id和秘钥获取
     * @param clientId id
     * @param clientSecret 秘钥
     * @return List<OauthClientDetails>
     */
    List<OauthClientDetails> getByClient(String clientId, String clientSecret);

    /**
     * 根据客户端ID获取一个
     * @param clientId id
     * @return 客户端详情
     */
    OauthClientDetails getByClientId(String clientId);
}
